package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.PresellSubscribeInfoRequest;
import com.ytjj.qmyx.admin.service.PresellSubscribeInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 
 * @description: 预售预约信息
 */
@RestController
@RequestMapping("/presellInfo")
@Slf4j
public class PresellInfoController {

    @Autowired
    PresellSubscribeInfoService presellSubscribeInfoService;

    /**
    * 分页获得预售预约信息
    * @param presellSubscribeInfoRequest:
    * @returns: com.ytjj.common.api.CommonResult
    * 
    */
    @PostMapping("/getInfoList")
    public CommonResult getInfoList(@RequestBody PresellSubscribeInfoRequest presellSubscribeInfoRequest){
        return CommonResult.success(presellSubscribeInfoService.getInfoList(presellSubscribeInfoRequest));

    }


}
